package fr.enseirb.mycub.component.map.bike;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.BitmapDrawable;

public class TextDrawable extends BitmapDrawable {

	static Paint mPaint = BikeStationsOverlay.mTextPaint;
	
	// For fast access and lot of modifications
	public volatile String bike;
	public volatile String slots;
	
	public TextDrawable(Resources r, Bitmap b) {
		super(r, b);
		this.setAlpha(200);
	}
	
	@Override
	public void draw(Canvas canvas) {
		super.draw(canvas);
		canvas.drawText(bike, -7, -35, mPaint);
		canvas.drawText(slots, -7, -18, mPaint);
	}
}